<?php
/**
 * Email:y7wanghui@gmail.com
 * File_Name:database.php
 */

$servername = "192.168.84.130";
$username = "root";
$password = "root123";
$dbname = "api_demo";

// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}

header('content-type:application/json');
